<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
> warcfilter </TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE=" warc-tools version 0.17  A library for data archiving "
HREF="index.html"><LINK
REL="UP"
TITLE=" Detailed utilisation "
HREF="c126.html"><LINK
REL="PREVIOUS"
TITLE=" arc2warc "
HREF="x145.html"><LINK
REL="NEXT"
TITLE=" warcvalidator "
HREF="x186.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>warc-tools version 0.17  A library for data archiving</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x145.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Detailed utilisation</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x186.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN174"
>3.3. warcfilter</A
></H1
><P
>&#13;		The option -f is mandatory  when we use warcfilter. It is used to indicate the name of the WARC file to filter. The option -v and -t
        are as described previously.
        </P
><P
>&#13;		The option -u  is to be used if we want to apply its argument as a filter on the WARC-Target-URI fields, if existing, of the WARC Records.
        </P
><P
>&#13;        The option -m  is to be used if we want to apply its argument as a filter on the Content-Type fields of the WARC Records.
        </P
><P
>&#13;		The option -r  is to be used if we want to apply its argument as a filter on the WARC-Type fields of the WARC Records.
        which represents the filter.
        </P
><P
>&#13;        In The following example, we dump headers fields of a WARC file using warcfilter, passing the filter "http:" to be applied to uri field.
        </P
><DIV
CLASS="example"
><A
NAME="AEN181"
></A
><P
><B
>Example 3-6.  How to use warcfilter command (usage of filter on WARC-Target-URI fields). </B
></P
><PRE
CLASS="screen"
>&#13;<SAMP
CLASS="prompt"
>mohamed@mohamed-desktop:~$ </SAMP
><KBD
CLASS="userinput"
> warcfilter -f file.warc -u http: -t /tmp/</KBD
>
        </PRE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x145.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x186.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>arc2warc</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c126.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>warcvalidator</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>